<script>
    jQuery(function($) {
        document.getElementById('a').onclick = function () {
            var arr = new Array(6);
            arr[0] = "a";
            arr[1] = "b";
            arr[2] = "c";
            arr[3] = "d";
            arr[4] = "e";
            arr[5] = "f";
            alert(arr.slice(3));
        }
    });
</script>
<div class="bord">
    <div class="title">slice</div>
    <div class="introduce">
        slice() 方法可从已有的数组中返回选定的元素。
    </div>
</div>
<div class="bord">
    <div class="title">演示效果</div>
    <pre>
        在 a b c d e f  数组中,取3个以后的，并返回新的元素。
    </pre>
    <button class="introduce" id="a">打印结果</button>
</div>
<div class="bord">
    <div class="title">代码</div>
    <div class="introduce">
        <pre>
                &lt;script&gt;
            jQuery(function($) {
                document.getElementById('a').onclick = function () {
                    var arr = new Array(6);
                    arr[0] = "a";
                    arr[1] = "b";
                    arr[2] = "c";
                    arr[3] = "d";
                    arr[4] = "e";
                    arr[5] = "f";
                    alert(arr.slice(3));
                }
            });
                &lt;/script&gt;
        </pre>
    </div>
</div>